package lab02.Test10;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

/**
 * Created by lady on 2017/10/23.
 */
public class Test {
    public static void main(String[] args) {

        System.out.println("中国人的平均身高：");
        ChinaPeople A=new ChinaPeople();
        A.heightMax=180;
        A.heightMin=150;
        System.out.println(A.getAverage());

        System.out.println("美国人的平均身高：");
        AmJericanPeople B=new AmJericanPeople();
        B.heightMax=190;
        B.heightMin=160;
        System.out.println(B.getAverage());

        System.out.println("北京人的平均身高：");
        BeiJingPeople C=new BeiJingPeople();
        C.heightMax=180;
        C.heightMin=160;
        System.out.println(C.getAverage());

    }
}
